package com.zx.map.service;

import com.zx.map.service.model.MessageSendLogModel;
import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * Created by IntelliJ IDEA. User: Administrator Date: 14-3-1 Time: 上午11:06 To
 * change this template use File | Settings | File Templates.
 */
public interface MessageSendLogService {
	/**
	 * 验证验证码是否正确
	 * 
	 * @param telephone
	 * @param verifyCode
	 * @return
	 */
	public boolean checkVerifyCode(String telephone, String verifyCode,String messageType);

	/**
	 * 根据Model查找列表
	 *
	 * @param model
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public List<MessageSendLogModel> getListByModel(MessageSendLogModel model) throws DataAccessException;


	/**
	 * 新增并返回主键
	 *
	 * @param model
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String add(MessageSendLogModel model) throws DataAccessException;

	/**
	 * 更新并返回主键
	 *
	 * @param model
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String update(MessageSendLogModel model) throws DataAccessException;


}
